<nav class="navbar navbar-default" role="navigation">
  <div class="container">
    <div class="navbar-header">
      <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-4">
        <span class="sr-only">Toggle navigation</span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
      <a class="navbar-brand" href="#">LogZilla RACI</a>
    </div>
    <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-4">
      <p class="navbar-text">Signed in as <?php echo $username; ?></p>
      <?php echo anchor('home/logout', 'Logout', array('class' =>'btn btn-default navbar-btn pull-right')); ?>
    </div>
  </div>
</nav>

<div class="container">
  <div class="row">
    <div class="col-sm-12">
      <?php 
        foreach ($task as $tt) {
          $title = $tt->title;
          $content = $tt->content;
          echo<<<EOT
          <h3>$title</h3>    
          <div> $content </div>
EOT;
        }
      ?>
    </div>
  </div>
</div>